<?php

/**
 * Description of Minus
 *
 * 
 */
include_once 'IAction.php';

class Minus implements IAction {

    function __construct() {
        
    }

    public function GetActionString() {
        return "-";
    }

    public function Evaluate($args) {
        if (!is_array($args))
            throw new InvalidArgumentException("Arrray not provided in argument!");
        if (count($args) != 2)
            throw new InvalidArgumentException("Wrong number of arguments for this action!");
        return $args[0] - $args[1];
    }

}

?>
